﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VictorBlaga.DocumentManagement.Core.Models
{
    public class User : EntityBase
    {
        public User()
        {
            UserLevel = (int)UserLevels.WorkshopMember;
        }
        public virtual string Username { get; set; }
        public virtual string Firstname { get; set; }
        public virtual string Lastname { get; set; }
        public virtual string Email { get; set; }
        public virtual int UserLevel { get; set; }
        public virtual string PasswordSalt { get; set; }
        public virtual string PasswordHash { get; set; }
        public virtual Workshop Workshop { get; set; }
        public virtual Workshop ManagesWorkshop { get; set; }
        public virtual Team ManagesTeam { get; set; }

        public virtual string Fullname
        {
            get
            {
                return Lastname + " " + Firstname;
            }
        }
    }
}
